home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / bouncegame.swf / scripts / frame_85 / PlaceObject2_208_37 / CLIPACTIONRECORD onClipEvent(data).as next >
Encoding:
Text File  |  2007-03-20  |  613 b   |  23 lines

  1. onClipEvent(data){
  2.    this.questions = new Array();
  3.    var j = 0;
  4.    while(j < 200)
  5.    {
  6.       if(this["question" + j + "_text"] == undefined)
  7.       {
  8.          return undefined;
  9.       }
  10.       this.questions[j] = {};
  11.       this.questions[j].text = this["question" + j + "_text"];
  12.       this.questions[j].answer = Number(this["question" + j + "_answer"]);
  13.       this.questions[j].choices = new Array();
  14.       var k = 0;
  15.       while(k < this.num_choices_per_question)
  16.       {
  17.          this.questions[j].choices[k] = this["question" + j + "_choice" + k];
  18.          k++;
  19.       }
  20.       j++;
  21.    }
  22. }
  23.